$(function(){
	//从地址栏中获取awardId
	var awardId = getQueryString('awardId');
	var awardUrl = '/o2o/frontend/getawardbyid?awardId=' + awardId;
	$.getJSON(awardUrl, function(data){
		if (data.success) {
			//
			var award = data.award;
			$('#award-img').attr('src',getContextPath() + award.awardImg);
			$('#create-time').text(new Date(award.createTime).Format("yyyy-MM-dd"));
			$('#award-name').text(award.awardName);
			$('#award-desc').text(award.awardDesc);
			$('#award-point').text('需消费' + award.point + '积分');
		}
		
	});	
	
});